
import {QuestiontData,AddInfo} from './type'
import {get,post} from '../../utils/request' 

//首页图表问题数据
export const getQCountsList=(params:QuestiontData)=>get("questions/getCountsList",params)
//首页右侧问题列表
export const questionsList=()=>get("questions/list")


//获取问题列表
export const getList=(params:QuestiontData)=>get("questions/list",params)

//批量删除
export const deleteAll=(ids:number[])=>post("questions/deleteall",{ids})
//单条删除
export const del=(id:number)=>get("questions/delete",{id})
//添加
export const add=(data:AddInfo)=> post("questions/add",data)
//获取问题类型
export const TypeList=():Promise<any> => get("questionstate/list",{psize:100})
//获取问题状态
export const StateList=():Promise<any> => get("questiontype/list",{psize:100})
